#!/usr/bin/env python
# encoding: utf-8
'''
@author: zhaowenpeng
@contact: winston@peipeiyun.com
@software: garner
@file: migrations.py
@time: 2020/8/14 下午2:45
@desc:
'''

from core.migrations import (
    MigrationModel,
    db_manager,
)
from models.parts import Parts

class ProvinceMigration(MigrationModel):
    _model = Parts



if __name__ == '__main__':
    pm = ProvinceMigration()
    with db_manager.transaction():
        pm.auto_migrate()
    print("Success Migration")